/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

export const tableOption = {
  border: true,
  index: true,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  align: 'center',
  column: [
    {
      label: '用户ID',
      prop: 'userId'
    },
    {
      label: '姓名',
      prop: 'name'
    },
	  {
      label: '最高心率',
      prop: 'maxHr'
    },
	  {
      label: '平均心率',
      prop: 'avgHr'
    },
    {
      label: '最低心率',
      prop: 'minHr'
    },
	  {
      label: '更新时间',
      prop: 'updateTime'
    }
  ],
  allColumn: [
	  {
      label: '编号',
      prop: 'id'
    },
	  {
      label: '用户ID',
      prop: 'userId'
    },{
      label: '文件名称',
      prop: 'fileNo'
    },{
      label: '设备ID',
      prop: 'deviceId'
    },
    {
      label: '检测ID',
      prop: 'bizId'
    },
	  {
      label: '最高心率',
      prop: 'maxHr'
    },
	  {
      label: '平均心率',
      prop: 'avgHr'
    },
    {
      label: '最低心率',
      prop: 'minHr'
    },
    {
      label: '稍快稍慢',
      prop: 'littleFastSlow'
    },
    {
      label: '过快过慢',
      prop: 'tooFastSlow'
    },
    {
      label: '正常',
      prop: 'normal'
    },
    {
      label: 'qrs间期',
      prop: 'qrs'
    },
    {
      label: 'p_r间期',
      prop: 'p_r'
    },
    {
      label: 'qt间期',
      prop: 'qt'
    },
    {
      label: 'qtc间期',
      prop: 'qtc'
    },
    {
      label: '心率',
      prop: 'hr'
    },
    {
      label: '诊断分析',
      prop: 'analyse'
    },
    {
      label: '传输模式',
      prop: 'mode'
    },
	  {
      label: '创建时间',
      prop: 'createTime'
    },
	  {
      label: '更新时间',
      prop: 'updateTime'
    }
  ],
}

export const detailOption = {
  group: [{
    icon: 'el-icon-info',
    label: '基本信息',
    prop: 'info',
  column: [
    {
      label: '姓名',
      prop: 'name'
    },
    {
      label: '开始时间',
      prop: 'startTime'
    },
    {
      label: '结束时间',
      prop: 'endTime'
    },
    {
      label: '时间',
      prop: 'createDate'
    },
    {
      label: 'bizId',
      prop: 'bizId'
    },
    {
      label: 'gain',
      prop: 'gain'
    },
    {
      label: '间隔',
      prop: 'interval'
    },
    {
      label: '导联类型',
      prop: 'leadType'
    },
    {
      label: '模式',
      prop: 'mode'
    },
    {
      label: '异常点',
      prop: 'outliers'
    },
    {
      label: '采样率',
      prop: 'samplingRate'
    },
    {
      label: '跑速',
      prop: 'velocity'
    },
  ]
  }]
}
export const checkConditionOption = {
  group: [{
    icon: 'el-icon-info',
    label: '测前问题',
    prop: 'checkCondition',
    column: [
      {
        label: '姓名',
        prop: 'name'
      },
      {
        label: '惊慌失措',
        prop: 'alarmed'
      },
      {
        label: '呼吸障碍',
        prop: 'breathingPoblems'
      },
      {
        label: '设备ID',
        prop: 'deviceId'
      },
      {
        label: '植入心脏起搏器',
        prop: 'pacemaker'
      },
      {
        label: '虚弱',
        prop: 'feeble'
      },
      {
        label: '胸痛',
        prop: 'pectoralgia'
      },
      {
        label: '自我描述',
        prop: 'selfDescribe'
      },
      {
        label: '更新时间',
        prop: 'updateTime'
      }
    ]
  }]
}
export const abnormalOption = {
  group: [{
    icon: 'el-icon-info',
    label: '分析信息-abnormal',
    prop: 'abnormal',
    column: [
      {
        label: '详情',
        prop: 'desc'
      }
    ]
  }]
}
export const ecgfeaturesOption = {
  group: [{
    icon: 'el-icon-info',
    label: '分析信息-ecgfeatures',
    prop: 'ecgfeatures',
    column: [
      {
        label: 'lead',
        prop: 'lead'
      },
      {
        label: 'AMP_R',
        prop: 'AMP_R'
      },
      {
        label: 'AMP_T',
        prop: 'AMP_T'
      },
      {
        label: 'P',
        prop: 'P'
      },
      {
        label: 'PR',
        prop: 'PR'
      },
      {
        label: 'QRS',
        prop: 'QRS'
      },
      {
        label: 'QT',
        prop: 'QT'
      },
      {
        label: 'QTc',
        prop: 'QTc'
      },
      {
        label: 'RRm',
        prop: 'RRm'
      },
      {
        label: 'ST',
        prop: 'ST'
      },
      {
        label: 'T',
        prop: 'T'
      }
    ]
  }]
}
